<template>
  <pcic-form
    ref="d2Crud"
    @validate="$emit('validate', $event)"
    class="whitebox"
    v-bind="_crudProps"
    v-on="_crudListeners"/>

</template>

<script>
import { d2CrudPlus } from 'd2-crud-plus'

export default {
  data () {
    return {}
  },
  mixins: [d2CrudPlus.crud],
  props: {
    crudOptions: {
      type: [Function, Object]
    }
  },
  created () {
    this.handleAdd()
  },
  methods: {
    doLoad(){

    },
    async doValidate(){
      return await this.$refs.d2Crud.doValidate()
    },
    getCrudOptions () {
      return this.crudOptions
    },
  }
}
</script>



